package com.haois.ws;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * Created by RuiHaoZ on 2017/3/12.
 */


@SpringBootApplication
@MapperScan("com.haois.ws.*.module.*.dao.mapper")
@EnableScheduling
public class Application extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

//        @Override
//        public void customize(ConfigurableEmbeddedServletContainer configurableEmbeddedServletContainer) {
//                configurableEmbeddedServletContainer.setPort(8090);
//        }
    //SpringBootServletInitializer
    //EmbeddedServletContainerCustomizer


    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(Application.class);
    }
}
